<?php
namespace Model;
use Kuyuan\WqCore\Model\Model;
class SettingModel extends Model
{
    protected $_key = "uniacid";
    protected $_fields = array(
        "uniacid",
        "app_name",
        "notice",
        "notice_time",
        "open_send",
        "sensitive_word",
        "open_attention",
        "hint_attention",
        "map_key",
        "share_ratio",
        "low_red_money",
        "coupon_check"
    );

    /**
     * 敏感词
     */
    public function getSensitiveWordAttr($_value)
    {
        if(!empty($_value)) {
            return explode(";",$_value);
        }
    }
}